<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of DispatcherMapper
 *
 * @author miho
 */
class BluesCoders_Router_DispatcherMapper {

    protected $_requestFactory;

    protected $_routesMap;

    public function  __construct() {
        
    }

    public function getDispatcher($request) {
        //TODO: Create pattern parser logic
        foreach($this->_routesMap as $dispatcherId => $pattern) {
           return $dispatcherId;
        }
    }

    
    public function setRequestFactory($value) {
        $this->_requestFactory = $value;
        return $this;
    }

    public function setRoutesMap($value) {
        $this->_routesMap = $value;
        return $this;
    }
    
}
?>
